package com.avery.mile.resource.second;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * Created by avery on 2018-12-27.
 */
public class TestResource {
    public void print() {
        final Properties properties = new Properties();
        InputStream inputStream = TestResource.class.getClassLoader().getResourceAsStream("core-site.properties");
        try {
            properties.load(inputStream);
        } catch (IOException e) {
            e.printStackTrace();
        }
        properties.list(System.out);
    }
}
